import request from './request.js';

//协议接口
export function getAgreement(data) {
	return request({
		url: `/api/system/agreement/detail`,
		method: 'POST',
		data
	})
}
export function getArea(data) {
	return request({
		url: `/api/system.area/lists`,
		method: 'POST',
		data
	})
}

export function loginss(data) {
	return request({
		url: '/api/user.login/login_demo',
		method: 'POST',
		data
	})
}
//登录
export function login(data) {
	return request({
		url: '/api/user.login/miniapp',
		method: 'POST',
		data
	})
}
//登录
export function getPhone(data) {
	return request({
		url: '/api/user.login/miniapp_register',
		method: 'POST',
		data
	})
}
export function getUserinfo() {
	return request({
		url: `/api/user.index/info`,
		method: 'get',
	})
}
//轮播图
export function getBanner(data) {
	return request({
		url: `/api/system.banner/lists`,
		method: 'POST',
		data
	})
}
//圈子列表
export function getCircleList(data) {
	return request({
		url: `/api/edu.circle/lists`,
		method: 'POST',
		data
	})
}
//圈子导航
export function getCircleTag(data) {
	return request({
		url: `/api/edu.circle/circle_tag`,
		method: 'POST',
		data
	})
}
//知识分类
export function getCourse(data) {
	return request({
		url: `/api/edu.course/cate`,
		method: 'POST',
		data
	})
}
//知识列表
export function getCourseList(data) {
	return request({
		url: `/api/edu.course/lists`,
		method: 'POST',
		data
	})
}
//分类详情
export function getCourseDetail(data) {
	return request({
		url: `/api/edu.course/course_cate_detail`,
		method: 'POST',
		data
	})
}
//课程详情
export function getCourseInfo(data) {
	return request({
		url: `/api/edu.course/detail`,
		method: 'POST',
		data
	})
}
//课程播放记录
export function upLog(data) {
	return request({
		url: `/api/edu.course/upLog`,
		method: 'POST',
		data
	})
}
//我的课程
export function courselog(data) {
	return request({
		url: `/api/user.index/course_log`,
		method: 'POST',
		data
	})
}

//购买课程
export function createOrder(data) {
	return request({
		url: `/api/edu.course/order_add`,
		method: 'POST',
		data
	})
}



//入圈申请
export function applyCircle(data) {
	return request({
		url: `/api/edu.circle/add`,
		method: 'POST',
		data
	})
}
//入圈数据
export function getcircle(data) {
	return request({
		url: `/api/user.index/check_circle`,
		method: 'POST',
		data
	})
}

export function getdict(data) {
	return request({
		url: `/api/system.dict/lists`,
		method: 'POST',
		data
	})
}

//商机列表
export function getBusinessList(data) {
	return request({
		url: `/api/edu.business/lists`,
		method: 'POST',
		data
	})
}
//发布商机
export function addBusinessList(data) {
	return request({
		url: `/api/edu.business/add`,
		method: 'POST',
		data
	})
}
//商机详情
export function detailBusinessList(data) {
	return request({
		url: `/api/edu.business/detail`,
		method: 'POST',
		data
	})
}
//商机修改
export function editBusinessList(data) {
	return request({
		url: `/api/edu.business/edit`,
		method: 'POST',
		data
	})
}
//商机删除
export function delBusinessList(data) {
	return request({
		url: `/api/edu.business/del`,
		method: 'POST',
		data
	})
}
//商机上下架
export function upSwitchBusinessList(data) {
	return request({
		url: `/api/edu.business/upSwitch`,
		method: 'POST',
		data
	})
}
//大会列表

export function getMeetingList(data) {
	return request({
		url: `/api/edu.meeting/lists`,
		method: 'POST',
		data
	})
}
//大会详情
export function getMeetingDetail(data) {
	return request({
		url: `/api/edu.meeting/detail`,
		method: 'POST',
		data
	})
}
//大会报名
export function signup(data) {
	return request({
		url: `/api/edu.meeting/sign_up`,
		method: 'POST',
		data
	})
}
export function paymeeting(data) {
	return request({
		url: `/api/edu.meeting/pay`,
		method: 'POST',
		data
	})
}
